package com.corpcredit.model;

// Generated Jul 22, 2008 11:56:54 PM by Hibernate Tools 3.2.0.CR1

import java.math.BigDecimal;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.UniqueConstraint;
import javax.persistence.Version;

/**
 * Pdfl1 generated by hbm2java
 */
@Entity
@Table(name = "pdfl_1", uniqueConstraints = @UniqueConstraint(columnNames = "pdfl_1"))
public class Pdfl1 implements java.io.Serializable
{

    private Long id;
    private int version;
    private Hyfl hyfl;
    private String username;
    private String operation;
    private Date optdate;
    private String pdfl1;
    private String pdflmc1;
    private BigDecimal bzf;
    private Integer xssx;
    private String tsbz;
    private String ms;
    private Set<Pdfl2> pdfl2s = new HashSet<Pdfl2>( 0 );

    public Pdfl1()
    {
    }

    public Pdfl1( Long id, String pdfl1, String pdflmc1 )
    {
        this.id = id;
        this.pdfl1 = pdfl1;
        this.pdflmc1 = pdflmc1;
    }

    public Pdfl1( Long id,
                  Hyfl hyfl,
                  String username,
                  String operation,
                  Date optdate,
                  String pdfl1,
                  String pdflmc1,
                  BigDecimal bzf,
                  Integer xssx,
                  String tsbz,
                  String ms,
                  Set<Pdfl2> pdfl2s )
    {
        this.id = id;
        this.hyfl = hyfl;
        this.username = username;
        this.operation = operation;
        this.optdate = optdate;
        this.pdfl1 = pdfl1;
        this.pdflmc1 = pdflmc1;
        this.bzf = bzf;
        this.xssx = xssx;
        this.tsbz = tsbz;
        this.ms = ms;
        this.pdfl2s = pdfl2s;
    }

    @Id
    @Column(name = "ID", unique = true, nullable = false)
    @GeneratedValue(strategy=GenerationType.AUTO)
    public Long getId()
    {
        return this.id;
    }

    public void setId( Long id )
    {
        this.id = id;
    }

    @Version
    @Column(name = "version", nullable = false)
    public int getVersion()
    {
        return this.version;
    }

    public void setVersion( int version )
    {
        this.version = version;
    }

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "hyf_ID")
    public Hyfl getHyfl()
    {
        return this.hyfl;
    }

    public void setHyfl( Hyfl hyfl )
    {
        this.hyfl = hyfl;
    }

    @Column(name = "username", length = 50)
    public String getUsername()
    {
        return this.username;
    }

    public void setUsername( String username )
    {
        this.username = username;
    }

    @Column(name = "operation", length = 20)
    public String getOperation()
    {
        return this.operation;
    }

    public void setOperation( String operation )
    {
        this.operation = operation;
    }

    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "optdate", length = 23)
    public Date getOptdate()
    {
        return this.optdate;
    }

    public void setOptdate( Date optdate )
    {
        this.optdate = optdate;
    }

    @Column(name = "pdfl_1", unique = true, nullable = false, length = 10)
    public String getPdfl1()
    {
        return this.pdfl1;
    }

    public void setPdfl1( String pdfl1 )
    {
        this.pdfl1 = pdfl1;
    }

    @Column(name = "pdflmc_1", nullable = false, length = 50)
    public String getPdflmc1()
    {
        return this.pdflmc1;
    }

    public void setPdflmc1( String pdflmc1 )
    {
        this.pdflmc1 = pdflmc1;
    }

    @Column(name = "bzf", precision = 18)
    public BigDecimal getBzf()
    {
        return this.bzf;
    }

    public void setBzf( BigDecimal bzf )
    {
        this.bzf = bzf;
    }

    @Column(name = "xssx")
    public Integer getXssx()
    {
        return this.xssx;
    }

    public void setXssx( Integer xssx )
    {
        this.xssx = xssx;
    }

    @Column(name = "tsbz", length = 1)
    public String getTsbz()
    {
        return this.tsbz;
    }

    public void setTsbz( String tsbz )
    {
        this.tsbz = tsbz;
    }

    @Column(name = "ms", length = 500)
    public String getMs()
    {
        return this.ms;
    }

    public void setMs( String ms )
    {
        this.ms = ms;
    }

    @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "pdfl1")
    public Set<Pdfl2> getPdfl2s()
    {
        return this.pdfl2s;
    }

    public void setPdfl2s( Set<Pdfl2> pdfl2s )
    {
        this.pdfl2s = pdfl2s;
    }

}
